FROM crpi-r63u596ki20idsav.cn-shenzhen.personal.cr.aliyuncs.com/gdjcz/basics-ipo-images
WORKDIR /ipoImages
COPY . .
RUN cp ./docker_env/web/web.conf /etc/nginx/conf.d/default.conf
RUN sed -i '60s/^/#/' /etc/nginx/nginx.conf
RUN python api/ROOT/manage.py makemigrations
RUN python api/ROOT/manage.py migrate
EXPOSE 8000
EXPOSE 80
CMD ["sh", "./docker_env/django/run.sh"]